package ym.ecrm.web.action.systemManagement;

import java.util.LinkedList;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;

import ym.ecrm.core.common.util.Node;
import ym.ecrm.core.common.util.Pager;
import ym.ecrm.core.dto.systemManagement.OrganizationDTO;
import ym.ecrm.core.service.systemManagement.ISystemService;
import ym.ecrm.web.action.base.BaseAction;

/**
 * 
 * @author Princess
 * 
 */
public class FindOrganizationReturnTreeAction extends BaseAction {

	private long id;
	
	Node children;
	
	@Autowired
	private ISystemService systemService;

	public String execute() {
		if(id == -1){
			id = 1;
		}
		children = systemService.findOrganizationReturnTree();
		return proccess();
	}

	public String getErrorMessage() {
		return errorMessage;
	}

	public String getSuccess() {
		return success;
	}
	public long getId() {
		return id;
	}
	public void setId(long id) {
		this.id = id;
	}

	public Node getChildren() {
		return children;
	}

	public void setChildren(Node children) {
		this.children = children;
	}

}
